fromJson static method

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

Implementation

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

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