fromJson static method

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

Implementation

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

  return PushMessageContentLocation(
    isLive: (json['is_live'] as bool?) ?? false,
    isPinned: (json['is_pinned'] as bool?) ?? false,
  );
}