listFromJson static method

List<UserProfile?>? listFromJson(
  1. List json, {
  2. bool? emptyIsNull,
  3. bool? growable,
})

Implementation

static List<UserProfile?>? listFromJson(List<dynamic> json, {bool? emptyIsNull, bool? growable,}) =>
  json == null || json.isEmpty
    ? true == emptyIsNull ? null : <UserProfile>[]
    : json.map((v) => UserProfile.fromJson(v)).toList(growable: true == growable);