getMetadataSchema static method

dynamic getMetadataSchema(
  1. List list
)

Implementation

static getMetadataSchema(List<dynamic> list) {
  if (list.isEmpty) {
    return List<PassageAppUserMetadataSchema>.empty();
  }
  return list
      .map((item) => kIsWeb
          ? PassageAppUserMetadataSchema.fromJson(item)
          : PassageAppUserMetadataSchema.fromMap(item))
      .toList();
}