Fakultas Ilmu Komputer UI

EquityOfferings.dart 430 Bytes
Newer Older
Habel Christiando Tobing's avatar
Habel Christiando Tobing committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import 'Ukm.dart';

class EquityOfferings {
  List<Ukm> ukmList;

  EquityOfferings({this.ukmList});

  factory EquityOfferings.fromJson(Map<String, dynamic> jsonData) {
    var list = jsonData['equity_offerings'] as List;
    print(list.runtimeType);
    List<Ukm> ukmLists = list.map((i) => Ukm.fromJson(i)).toList();
    return EquityOfferings(ukmList: ukmLists);
  }

  List<Ukm> getUkmList() {
    return this.ukmList;
  }
}