listFromJson static method

List<TextAlignment> listFromJson(
  1. List json
)

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

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

Implementation

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