listFromJson static method

List<Padding> listFromJson(
  1. List json
)

Converts a list of JSON objects to a list of Padding instances.

@param json The list of JSON objects to convert. @return A list of Padding instances.

Implementation

static List<Padding> listFromJson(List<dynamic> json) {
  return json.map((value) => Padding.fromJson(value)).toList();
}