fromJson static method

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

Implementation

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

  return PushMessageContentGameScore(
    title: (json['title'] as String?) ?? '',
    score: (json['score'] as int?) ?? 0,
    isPinned: (json['is_pinned'] as bool?) ?? false,
  );
}