fromJson static method

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

Implementation

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

  return PushMessageContentGame(
    title: (json['title'] as String?) ?? '',
    isPinned: (json['is_pinned'] as bool?) ?? false,
  );
}