listFromJson static method

List<SignerLinksProcedure> listFromJson(
  1. List? json
)

Implementation

static List<SignerLinksProcedure> listFromJson(List<dynamic>? json) {
  if (json == null) {
    return <SignerLinksProcedure>[];
  }

  return json.fold(<SignerLinksProcedure>[],
      (List<SignerLinksProcedure> previousValue, element) {
    final SignerLinksProcedure? object =
        SignerLinksProcedure.fromJson(element);
    if (object is SignerLinksProcedure) {
      previousValue.add(object);
    }

    return previousValue;
  });
}