fromJson static method

PushReceiverId? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static PushReceiverId? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PushReceiverId(
    id: int.tryParse((json['id'] as dynamic)?.toString() ?? '') ?? 0,
  );
}