nullableFromJson static method

StringIdText? nullableFromJson(
  1. Map<String, dynamic>? map
)

Creates a nullable StringIdText from a nullable JSON map.

Returns null if map is null or empty.

Implementation

static StringIdText? nullableFromJson(Map<String, dynamic>? map) {
  return (map == null || map.isEmpty) ? null : StringIdText.fromJson(map);
}