fromJson static method

EmailChannel fromJson(
  1. Map<String, dynamic> json
)

Implementation

static EmailChannel fromJson(Map<String, dynamic> json) {
  return EmailChannel(
    address: json['address'] as String,
    private: (json['private'] as bool?) ?? true,
    annotations: json['annotations'] != null
        ? {for (final entry in (json['annotations'] as Map).entries) entry.key as String: entry.value as String}
        : null,
  );
}