EventSubscribeResult.fromMap constructor Null safety

EventSubscribeResult.fromMap(
  1. Map<String, dynamic>? json
)

Implementation

factory EventSubscribeResult.fromMap(Map<String, dynamic>? json) {
  return EventSubscribeResult(
      eventType: json?['eventType'] as int?,
      expiry: json?['expiry'] as int?,
      time: json?['time'] as int?,
      publisherAccount: json?['publisherAccount'] as String?);
}