fromJson static method

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

Implementation

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

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