fromJson static method

App fromJson(
  1. dynamic json
)

从json解析

Implementation

static App fromJson(json) {
  return App(
      name: json['name'],
      instance: List.from(json['instance'] ?? [])
          .map((j) => Instance.fromJson(j))
          .toList());
}